package day07;

public class OverloadDemo {
    public static void show(){

    }
    public static void show(String name){

    }
    public static void show(int age){

    }
    public static void show(String name,int age){

    }
    public static void show(int age,String name){

    }
    /**
    public static int show(){   //重载与返回值类型无关
        return 1;
    }
     */
    /**
    public static void show(String address){ //编译错误，重载与参数的名称无关

    }
     */


    public static void main(String[] args) {
        show();
        show("zhangsan");
        show(15);
        show("zhangsan",25);
        show(25,"zhangsan");

    }
}
